package com.ardf.service;

import com.ardf.entity.Number;
import com.ardf.entity.dto.NumberSearchAllDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ShiYunHao
 * @since 2025-01-06
 */
public interface INumberService extends IService<Number> {

    /**
     * 分页
     */

    Page<NumberSearchAllDto> searchAll(Integer pageSize, Integer pageNum, Long competitionId, String searchAll);

    /**
     * 判断是否存在空的选手号码
     */
    Boolean containsEmpty(Long competitionId);

    /**
     * 一键下发
     * @param competitionId
     */
    void oneClick(Long competitionId);

    boolean check(Long competitionId, String number,Long numberId);

    /**
     *下载选手表
     */
    void download(HttpServletResponse response,Long competitionId) throws IOException;

}
